package com.example.proxy.dynamic.jdk.demo3;

public class Test {

    public static void main(String[] args) {

        // 真实对象
        Person person = new Man();

        // 代理
        JdkProxy jdkProxy = new JdkProxy(person);

        // 通过代理生成的代理对象
        Person instance = (Person) jdkProxy.getInstance();
        System.out.println("代理对象名称:" + instance.getClass().getName());
        instance.findLove();


    }

}
